package com.ynny.extends_.example01;

public class Cylinder extends Circle{

    private double height;

    public Cylinder(){

        this.height = 1;
    }
    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }


    //计算圆柱的体积: v = s*h
    public double findVolume(){
        double v = findArea() * height;

        return v;
    }
}
